/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package p3as.cliente;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 *
 * @author Josue
 */
public class MouseController implements MouseListener{

    private AnimationController controller;
    
    public MouseController(AnimationController controller) {
        this.controller = controller;
    }

    @Override
    public void mouseClicked(MouseEvent e) {
        controller.createBall(e.getX(), e.getY());
    }

    @Override
    public void mousePressed(MouseEvent e) {
      
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        
    }

    @Override
    public void mouseExited(MouseEvent e) {
        
    }
    
}
